#include "TrafficWid.h"
#include "TrafficWidplugin.h"

#include <QtPlugin>

TrafficWidPlugin::TrafficWidPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void TrafficWidPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool TrafficWidPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *TrafficWidPlugin::createWidget(QWidget *parent)
{
    return new TrafficWid(parent);
}

QString TrafficWidPlugin::name() const
{
    return QLatin1String("TrafficWid");
}

QString TrafficWidPlugin::group() const
{
    return QLatin1String("");
}

QIcon TrafficWidPlugin::icon() const
{
    return QIcon();
}

QString TrafficWidPlugin::toolTip() const
{
    return QLatin1String("");
}

QString TrafficWidPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool TrafficWidPlugin::isContainer() const
{
    return false;
}

QString TrafficWidPlugin::domXml() const
{
    return QLatin1String("<widget class=\"TrafficWid\" name=\"trafficWid\">\n</widget>\n");
}

QString TrafficWidPlugin::includeFile() const
{
    return QLatin1String("TrafficWid.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(trafficwidplugin, TrafficWidPlugin)
#endif // QT_VERSION < 0x050000
